package com.greensam.pixelengine.pojo.vo.role.request;

import com.greensam.pixelengine.pojo.base.BaseDto;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;

/**
 * @author Macro_Ray
 * @since 2025/6/19 16:31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(title = "保存角色请求参数")
public class RoleSaveRequest extends BaseDto {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(title = "角色ID")
    private Long id;

    @Schema(title = "角色名称")
    @NotBlank
    private String name;

    @Schema(title = "角色描述")
    private String description;

    @Schema(title = "角色唯一标识")
    @NotBlank
    private String code;

    @Schema(title = "排序")
    private Integer sort = 0;

    @Schema(title = "状态")
    private Boolean status = Boolean.TRUE;
}
